﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  新增商品规格
    /// </summary>
    public class AddGoodSpec
    {
        /// <summary>
        ///  商品id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确的商品id")]
        public int fileID { get; set; }
        /// <summary>
        ///  规格名称，例如：辣度
        /// </summary>
        [Required(ErrorMessage = "specName：规格名称不能为空！")]
        public string specName { get; set; }
        /// <summary>
        ///  规格选项，例如：微辣;中辣;麻辣
        /// </summary>
        [Required(ErrorMessage = "specOption：规格选项不能为空！")]
        public string specOption { get; set; }
    }
}